import { restArguments } from '../collections/invoke'
export default restArguments(function (func: Function, wait: number, args) {
  return setTimeout(function () {
    return func.apply(null, args)
  }, wait)
})